package com.example.ytyproject.controller;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.example.ytyproject.entity.User;
import com.example.ytyproject.entity.vo.R;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/auth")
public class AuthController {

    @GetMapping("/buttons")
    public R buttons() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("authButton", List.of("add", "edit", "delete", "import", "export"));
        jsonObject.put("useProTable", List.of("add", "batchAdd", "export", "batchDelete", "status"));
        return R.ok(jsonObject);
    }
}
